import { http } from '@/utils/http/axios';
const baseUrl = '/song';

export type Level = 'standard' | 'higher' | 'exhigh' | 'lossless' | 'hires' | 'jyeffect' | 'sky' | 'jymaster';

export default {
  /**
   * @description 获取歌单详情
   */
  getSongUrl: (playlistId: string, level: Level = 'standard') =>
    http.get({ url: `${baseUrl}/url/v1`, params: { id: playlistId, level } }, { isTransformResponse: false }),
};
